package com.dong.order.client;

import com.dong.common.ResultData;
import com.dong.policy.entity.mysql.policy.Policy;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Mr.dongchao
 */
@FeignClient(contextId = "001",value = "light-cloud-provider-policy-web")
public interface LightPolicyClient {

    @GetMapping("/policy/find/{id}")
    ResultData<Policy> findPolicy(@PathVariable Long id);
}
